package com.hzdl.order.service;

import com.hzdl.order.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 声明Feign客户端以及调用微服务的名字
 */
@FeignClient(value = "goods")
public interface GoodsService {

    @GetMapping("/goods/one")
    Goods findById(@RequestParam("id") Integer id);

}
